package net.posick.ws.soap;

import net.posick.ws.xml.XmlException;

public class SOAPException extends XmlException
{
    private static final long serialVersionUID = 201403271221L;
    

    public SOAPException()
    {
        super();
    }
    
    
    public SOAPException(String detailMessage)
    {
        super(detailMessage);
    }
    
    
    public SOAPException(Throwable throwable)
    {
        super(throwable);
    }
    
    
    public SOAPException(String detailMessage, Throwable throwable)
    {
        super(detailMessage, throwable);
    }


    public static SOAPException wrap(Throwable t)
    throws SOAPException
    {
        SOAPException se = new SOAPException(t.getMessage());
        se.setStackTrace(t.getStackTrace());
        return se;
    }
}
